<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebMVC.Models.PackageViewModel>" %>
<asp:Content ID="meta" ContentPlaceHolderID="HeadContent" runat="server">
    <meta name="keywords" content="<%=ViewResources.MetaStrings.ProductPageMetaKeywords %>"/>
	<meta name="description" content="<%=ViewResources.MetaStrings.ProductPageMetaDescription %>" />
	<script src="/Scripts/ConfigUtils.js" type="text/javascript" > </script>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewResources.MetaStrings.ConfigPackagePageTitle %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% Html.RenderPartial("WizardUserControl", (WebMVC.Models.ProductWizardViewModel)ViewData["wizard"]);%>
<% using (Html.BeginForm()) { %>

<div class="row" >
    <div class="bcard-image-zone">
        <img class="bcard-img" src="<%= Html.Encode(Url.Action("GetReviewImage", "Product"))%>"  alt="review"/>
    </div>
    <div class="bcard-image-zone">
        <img class="bcard-img" src="<%= Html.Encode(Url.Action("GetReviewImage", "Product"))%>"  alt="review"/>
    </div>
    <div style="float:right">
        <table class="config">
            <thead>
                <tr>
                    <th>
                        <%= ViewResources.ProductStrings.PriceLabel %>
                    </th>
                    <th>
                       <label id="price-label"><%= TempData["price"] %></label>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <%= ViewResources.ProductStrings.PaperLabel %>
                    </td>
                    <td>
                        <label id="print-media-label">Glossy kodak 250gr</label> 
                    </td>
                </tr>
                <tr>
                    <td>
                        <%= ViewResources.ProductStrings.PrintingLabel %>
                    </td>
                    <td>
                        <label id="print-method-label">4x1 printing</label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%= ViewResources.ProductStrings.FinishingLabel %>
                    </td>
                    <td>
                        <label id="finishing-label"></label>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>

<h2 class="row-title">Choose paper</h2>
<div class="row">
    <div class="type-box">
        <h4>Type</h4>
        <a href="#" class="toggle-link toggle-link-selected" title="paper-type">plain</a>
        <a href="#" class="toggle-link" title="paper-type">decorative</a>
    </div>
    <div class="item-box" >
        <h4>Paper</h4>
        <div id="paper-list">
            <%Html.RenderAction("GetPrintMediaList", new { id = Model.ProductId });%>
        </div>
    </div>
    <div class="desc-box">
        <h4>Description</h4>
        <p id="print-media-desc"></p>
    </div>
</div>    

<h2 class="row-title">Printing method</h2>    
<div class="row">
    <div class="type-box">
        <h4>Sides</h4>
        <a href="#" class="toggle-link toggle-link-selected" title="side">one side</a>
        <a href="#" class="toggle-link" title="side">both sides</a>
    </div>
    <div class="item-box">
        <h4>Colors</h4>
        <div id="color-list">
            <%Html.RenderAction("GetPrintMethodList", new { id = Model.PrintMediaCode}); %>
        </div>
    </div>
    <div class="desc-box">
        <h4>Description</h4>
        <p id="print-method-desc"></p>
    </div>
</div>        


    
        <div>
            <fieldset>
            <%=Html.HiddenFor(m => m.PrintMediaCode,new {id="print-media-hidden"}) %>
            <%=Html.HiddenFor(m => m.PrintMethodCode,new {id="print-method-hidden"}) %>    
            
                <p>
                    Quantity 
                    <%= Html.TextBoxFor(m => m.Quantity) %>
                </p>
                
                <p>
                    <input type="submit" value="Next" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
